//
//  BaseUITableView.h
//  NovartisPPH
//
//  Created by Sidney on 13-9-26.
//  Copyright (c) 2013年 iSoftstone infomation Technology (Group) Co.,Ltd. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseUIScrollView.h"

@protocol TableViewOperationDelegate;

@interface BaseUITableView : UITableView
<UITableViewDataSource,UITableViewDelegate>

@property(nonatomic,assign) SCROLL_DIRECTION scrollDir;

@property(nonatomic,strong)id <TableViewOperationDelegate> opetationDelegate;

@property(nonatomic,assign)BOOL isRefreshing;//是否正在刷新

@property(nonatomic,assign)BOOL isLoadMore;//下拉加载更多
@property(nonatomic,assign)BOOL isRefreshfirstPage;//上拉刷新

@property(nonatomic,strong)UIButton * loadMoreBtn;
@property(nonatomic,strong)UIView * refreshView;

////添加下拉刷新界面 老版本,暂时不用
//- (void)addRefreshFirstPageView;
////停止刷新.恢复原状
//- (void)stopRefreshFirstPage;
////移出界面
//- (void)removeRefreshFirstPageView;


- (void)addRefreshControl;
- (void)endRefreshing;


//添加加载更多按钮
- (void)addReloadMoreDataBtn;
//加载完列表后,刷新位置
- (void)refreshLoadMoreBtnFrame;
//移出加载更多按钮
- (void)removeReloadMoreDataBtn;

@end


@protocol TableViewOperationDelegate <NSObject>
@optional
- (void)getMoreData:(BaseUITableView *)tableView;
//- (void)refreshFirstPage:(BaseUITableView *)tableView;

- (void)tableViewRefreshFirstPage:(BaseUITableView *)tableView;

@end
